#ifndef ALG_MATH_H
#define ALG_MATH_H
#include "geo_alg.h"
GEO_ALG_BEGIN_NAMESPACE
//11-17
const double PI = 3.141592653;
const double PI_DIV_2 = PI / 2.0;
const double PI_DIV_180 = PI / 180;
const double _180_DIV_PI = 180 / PI;

#define ALG_MIN(a,b) (a)<(b)?(a):(b)
#define ALG_MAX(a,b) (a)>(b)?(a):(b)

GEO_ALG_API double deg_to_rad(double deg);


GEO_ALG_API double rad_to_deg(double rad);


GEO_ALG_END_NAMESPACE

#endif
